AR=ar -rc
SO=g++ -fPIC -g -shared -O2 -pipe -o
OBJS=$(patsubst %.cpp, %.o, $(wildcard *.cpp))

TARGET=libfilequeue.a libfilequeue.so

all: ${TARGET}
	@echo "objs: ${OBJS}"
	cp ${TARGET} ../lib

.cpp.o:
	g++ -fPIC -g -O2 -pipe -c -o $@ $<

libfilequeue.a: ${OBJS}
	${AR} $@ $+

libfilequeue.so: ${OBJS}
	${SO} $@ $+

clean:
	rm -f ${TARGET} *.o
